# 封装公共断言方法
def common_assert(response, status_code=200, msg="成功", code=200):
    assert status_code == response.status_code
    assert msg in response.text
    assert code == response.json().get("code")
